import jakarta.servlet.ServletException;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;

import java.io.IOException;

/**
 * @author 张轩豪
 * @Date 2025/3/15:14:52
 * @Description:
 */
public class ServletB extends HelloServlet{
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        System.out.println("ServletB收到get请求");
        req.setAttribute("a","123456");
        System.out.println("ServletB取出的数据:\t"+req.getAttribute("a"));
    }
}
